package ooday05.demo;

public class StarTest {
    public static void main(String[] args) {
        Star s=Star.CXK;
        System.out.println(s.getname()+"喜欢"+s.gethobby());
        Star[] s1=Star.values();
        for (int i=0;i< s1.length;i++){

            System.out.println(s1[i].getname());
            System.out.println(s1[i].gethobby());
            System.out.println();

        }
    }
}
